package com.ruoyi.driver;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.Bean;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
/** LONG TIME ERROR 401报错解决*2 **/
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
public class RuoYiSettledApplication {
    public static void main(String[] args) {
        SpringApplication.run(RuoYiSettledApplication.class);
    }

    @Bean
    public ExecutorService executorService(){
        ExecutorService pool = Executors.newFixedThreadPool(10);
        return pool;
    }
}
